// CascadeClassifier.h: interface for the CCascadeClassifier class.
//
//////////////////////////////////////////////////////////////////////

#ifndef CASCADE_CLASSIFIER_H
#define CASCADE_CLASSIFIER_H

#pragma once

#include "AClassifier.h" 

class CCascadeClassifier : public CAClassifier
{
public:
	int		GetNumOfLayers();
	void	AddClassifier(CAClassifier *pClassifier);
	void	SaveToFile(FILE *fp);
	void	LoadFromFile(FILE *fp);
	void	Clear();
	CCascadeClassifier();
	virtual ~CCascadeClassifier();

	float	Classify(CASample *pSample, const char flag);
	bool	LoadFromFile(const char *strFileName);
	bool	SaveToFile(const char *strFileName);

private:
	CVPClassifier m_vpClassifiers;
};

#endif
